package LRU

import "time"

type Task struct {
	taskFunc  func()
	timestamp time.Time
	TaskName  string
}

func NewTask(taskFunc func(), name string) *Task {
	return &Task{
		taskFunc: taskFunc,
		TaskName: name,
	}
}

func (task *Task) ModifyTaskName(name string) {
	task.TaskName = name
}

func (task *Task) Execute() {
	task.taskFunc()
}
